
/**		
 * 
 *	Application
 *	
 *	@version 1.00 | Jan 7, 2010
 *	@author Justin Windle
 *  
 **/
 
package  
{
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import uk.co.lmfm.guppy.model.vo.StartupVO;
	import uk.co.lmfm.guppy.application.ApplicationFacade;

	import flash.display.Sprite;

	/**
	 * Application
	 */
	
	[SWF(width="800", height="600", backgroundColor="#e2e2e2", frameRate="31")]
	
	public class Application extends Sprite 
	{
		public static const APP_ID : String = "uk.co.lmfm.guppy";

		public function Application()
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			var vo:StartupVO = new StartupVO();
			vo.container = addChild(new Sprite()) as Sprite;
			
			ApplicationFacade.getInstance(APP_ID).startup(vo);
			
			// TODO Check if included lib is a swc using regexp, if so change build settings
		}
	}
}
